<!DOCTYPE html>
<html>
<head>
  <title>{{title}}</title>
  {{> includes/head.html }}
  <link rel="stylesheet" type="text/css" media="all" href="/redist/npm/bootstrap-markdown/css/bootstrap-markdown.min.css">
  <link rel="stylesheet" type="text/css" media="all" href="/css/scriptPage.css">
  <link rel="stylesheet" type="text/css" media="all" href="/redist/npm/animate.css/animate.css">
</head>
<body>
  {{> includes/header.html }}
  <div class="container-fluid">
    <div class="row">
      <div class="container-fluid col-sm-8">
        {{> includes/scriptPageHeader.html }}
        <div class="col-xs-12">
          <div class="topic-title row container-fluid">
            <ol class="breadcrumb pull-left">
              <li><a href="{{{script.scriptPageUrl}}}">{{script.name}}</a></li>
              <li><a href="{{{category.categoryPageUrl}}}">{{category.name}}</a></li>
              <li class="active"><a href="{{{discussion.discussionPageUrl}}}">{{discussion.topic}}</a></li>
            </ol>
            <div class="pull-right">
              <ul >

              </ul>
              <a class="btn btn-sm {{^discussion.open}}btn-link{{/discussion.open}}{{#discussion.open}}btn-success{{/discussion.open}}" {{#canOpen}}href="{{{discussion.issueOpenUrl}}}"{{/canOpen}}>Open</a>
              <a {{#canClose}}rel="bookmark" referrerpolicy="same-origin" data-toggle="modal" data-target="#closeIssueScriptModal" href="#" {{/canClose}}class="btn btn-sm {{#discussion.open}}btn-link{{/discussion.open}}{{^discussion.open}}btn-danger{{/discussion.open}}">{{#discussion.open}}Close{{/discussion.open}}{{^discussion.open}}Closed{{/discussion.open}}</a>
            </div>
          </div>
          <div class="container-fluid comments">
            <div class="row">
              <section class="topic-area list-group">
                {{#paginationRendered}}
                <div class="text-center collapse">
                  {{{paginationRendered}}}
                </div>
                {{/paginationRendered}}
                {{#commentList}}
                {{> includes/comment.html }}
                {{/commentList}}
                {{#paginationRendered}}
                <div class="text-center">
                  {{{paginationRendered}}}
                </div>
                {{/paginationRendered}}
              </section>
              <section class="topic-area list-group">
                {{> includes/commentForm.html }}
              </section>
            </div>
          </div>
        </div>
      </div>
      <div class="container-fluid col-sm-4">
        {{> includes/searchBarPanel.html }}
        {{#script.canDonate}}
        {{#script.contribution}}
        <div class="panel">
          <div class="panel-body">
            <div class="btn-group btn-group-justified">
              <a rel="bookmark" referrerpolicy="same-origin" href="#" data-toggle="modal" data-target="#donateScriptModal" class="btn btn-donate" title="Monetary donations for this Author">
                <i class="fa fa-fw fa-money"></i><span class=""> Donate</span>
              </a>
            </div>
          </div>
          {{/script.contribution}}
          {{/script.canDonate}}
        </div>
      </div>
    </div>
  </div>

  {{> includes/scriptModals.html }}
  {{> includes/footer.html }}
  {{#paginationRendered}}
      {{> includes/scripts/showTopPagination.html }}
  {{/paginationRendered}}
  {{> includes/scripts/lazyIconScript.html }}
  {{> includes/scripts/formControlClear.html }}
  {{> includes/scripts/markdownEditor.html }}
  {{> includes/scripts/commentReplyScript.html }}
  {{^authedUser}}
    {{> includes/scripts/commentReplyTooltip.html }}
  {{/authedUser}}
</body>
</html>
